package com.dhz.common.exception;

/**
 * 基础异常类
 */
public class BaseException extends RuntimeException {
    /** 错误所属模块 */
    private String model;
    /** 异常代码 */
    private String code;
    /** 产生异常的参数 */
    private Object[] args;
    /** 异常提示消息 */
    private String message;
    private Throwable e;

    public Throwable getE() {
        return e;
    }

    public void setE(Throwable e) {
        this.e = e;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
